package com.fduss.artStore.service;

import com.fduss.artStore.entity.*;

import java.util.List;

/**
 * @Author duocai wu
 * @Date 2017/6/24
 * @Time 18:30
 */
public interface OrderService {

    Order createOrder(int artworkID, int customerId, int frameId, int mattId, int glassId);

    Order completeOrder(int orderId);

    OrderDetail updateOrderDetail(OrderDetail orderDetail);

    /**
     * delete the order and its related message.
     * @param orderId
     */
    void deleteOrder(int orderId);

    /**
     * 一次加载所有order详细信息。
     * @param orderId
     * @return
     */
    OrderDetail getOrderDetail(int orderId);

    List<Order> getOrders(int customerId);

    List<Order> getNotCompletedOrders(int customerId);

    List<Order> getCompletedOrders(int customerId);

    List<Order> getAllOrders();

    List<TypesFrame> getAllFrames();

    List<TypesGlass> getAllGlasses();

    List<TypesMatt> getAllMatts();

    List<TypesShipper> getAllShippers();
}
